<?xml version="1.0" encoding="UTF-8" ?>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>${view.title}</title>
<link rel="stylesheet" href="<c:url value="/"/>css/manage.css" type="text/css" />
<script type="text/javascript" src="<c:url value="/"/>dwr/engine.js"></script>
<script type="text/javascript" src="<c:url value="/"/>dwr/util.js"></script>
<script type="text/javascript" src="<c:url value="/"/>dwr/interface/tourCategoryService.js"></script>
<script type="text/javascript" src="<c:url value="/"/>js/admin.js"></script>
</head>
<body>
<div id="top_menu">
<ul>
<li><a href="<c:url value="/"/>admin/insert_tour.html?language=zh_CN">${view.navigationView.chinese}</a></li>
<li><a href="<c:url value="/"/>admin/insert_tour.html?language=en">${view.navigationView.english}</a></li>
</ul>
</div>
<div id="navigation">
<strong>${view.navigationView.position}</strong>
<ol class="navigation">
<li><a href="<c:url value="/"/>admin/manage.html">${view.navigationView.navigationManage}</a></li>
<li><a href="<c:url value="/"/>admin/tour.html">${view.navigationView.navigationTour}</a></li>
<li><a class="current" href="<c:url value="/"/>admin/insert_tour.html">${view.navigationView.navigationInsertTour}</a></li>
</ol>
</div>
<div id="content">
<form action="<c:url value="/"/>admin/insert_tour_action.html" method="post" enctype="multipart/form-data">
<table>
<tr>
<td>${view.tourContentView.typeName}</td>
<td>
<select id="typeId" name="typeId" onchange="handleCategory('category',$('typeId'),'')">
<c:forEach items="${view.tourTypeList}" var="tourType">
<option value="${tourType.id}">${tourType.name}</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td>${view.tourContentView.category}</td>
<td>
<select id="category" name="category">
<c:forEach items="${view.categoryList}" var="category">
<option value="${category}">${category}</option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td>${view.tourContentView.subject}</td>
<td><input id="subject" name="subject" type="text"/></td>
</tr>
<tr>
<td>${view.tourContentView.comments}</td>
<td><input name="comments" type="text"/></td>
</tr>
<tr>
<td>${view.tourContentView.aim}</td>
<td><input name="aim" type="text"/></td>
</tr>
<tr>
<td>${view.tourContentView.characteristic}</td>
<td><input name="characteristic" type="text"/></td>
</tr>
<tr>
<td>${view.tourContentView.location}</td>
<td><input name="location" type="text"/></td>
</tr>
<tr>
<td>${view.tourContentView.days}</td>
<td><input name="days" type="text"/>天</td>
</tr>
<tr>
<td>${view.tourContentView.cost}</td>
<td><input name="cost" type="text"/>元/人</td>
</tr>
<tr>
<td>${view.tourContentView.costComments}</td>
<td><input name="costComments" type="text"/></td>
</tr>
<tr>
<td>${view.tourContentView.costStandard}</td>
<td>
<textarea rows="10" cols="50" name="costStandard"></textarea>
</td>
</tr>
<tr>
<td>${view.tourContentView.costNotice}</td>
<td>
<textarea rows="10" cols="50" name="costNotice"></textarea>
</td>
</tr>
<tr>
<td>${view.tourContentView.attention}</td>
<td>
<textarea rows="10" cols="50" name="attention"></textarea>
</td>
</tr>
<tr>
<td>${view.tourContentView.statement}</td>
<td>
<textarea rows="10" cols="50" name="statement"></textarea>
</td>
</tr>
<tr>
<td>${view.tourContentView.isAd}</td>
<td>
<select name="isAd">
<option value="FALSE" selected="selected">否</option>
<option value="TRUE">是</option>
</select>
</td>
</tr>
<tr>
<td>${view.tourContentView.adImageUrl}</td>
<td>
<input type="file" name="adImageFile" onchange="DWRUtil.setValue('adImageUrl', '')"/>
<input id="adImageUrl" name="adImageUrl" type="hidden"/>
</td>
</tr>
<tr>
<td>${view.tourContentView.isImage}</td>
<td>
<select name="isImage">
<option value="FALSE" selected="selected">否</option>
<option value="TRUE">是</option>
</select>
</td>
</tr>
<tr>
<td>${view.tourContentView.imageUrl}</td>
<td>
<input type="file" name="imageFile" onchange="DWRUtil.setValue('imageUrl', '')"/>
<input id="imageUrl" name="imageUrl" type="hidden"/><br/>
<input type="file" name="imageFile1" onchange="DWRUtil.setValue('imageUrl1', '')"/>
<input id="imageUrl1" name="imageUrl1" type="hidden"/><br/>
<input type="file" name="imageFile2" onchange="DWRUtil.setValue('imageUrl2', '')"/>
<input id="imageUrl2" name="imageUrl2" type="hidden"/><br/>
<input type="file" name="imageFile3" onchange="DWRUtil.setValue('imageUrl3', '')"/>
<input id="imageUrl3" name="imageUrl3" type="hidden"/><br/>
<input type="file" name="imageFile4" onchange="DWRUtil.setValue('imageUrl4', '')"/>
<input id="imageUrl4" name="imageUrl4" type="hidden"/><br/>
</td>
</tr>
</table>
<input type="submit" value="${view.globalView.insert}"/>
</form>
</div>
</body>
</html>